const device = {
  // 获取本地推送标识信息
  getPushInfo() {
    var info = plus.push.getClientInfo();
    console.log(info)
    userApi.registerEquipment(info.clientid).then(res => {
      console.log(res)
    })
    plus.push.addEventListener( 'click', this.onPushClickCallback, true );
  },
  // 点击推送消息回调
  onPushClickCallback(msg) {
    console.log(msg)
  }
}

export default device